

    let loaded = function(){
        let timeArea = document.querySelector( '.pre-day-show' ) ; // 选择并返回 .time 元素
        let dayArea = document.querySelector( '.show-day-only' ) ; 
        const today = new Date();
        let show = function(){
            today.setTime( Date.now() );
            let year = today.getFullYear();
            let month = today.getMonth() + 1 ;
            let date = today.getDate();
            var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
            var w= weeks[today.getDay()];
            let content = `${year}年${month}月${date}日 ${w}`
            timeArea.innerHTML = content ;
            dayArea.innerHTML=date;
        }
        show();
    }
    // 为 window 实例 绑定 load 事件的 监听器
    window.addEventListener( 'load' , loaded , false );
	


